package data

import (
	"jmicro/app/pkg/gorm"
	"jmicro/pkg/common/time"
)

type UserDO struct {
	//ID       uint64
	gorm.BaseModel
	Mobile   string    `gorm:"type:varchar(12);comment:手机号"`
	NickName string    `gorm:"type:varchar(10);comment:昵称"`
	Birthday time.Time `gorm:"type:datetime;comment:生日"`
	Gender   string    `gorm:"type:varchar(4);comment:性别"`
	Role     int32     `gorm:"type:int(2);comment:权限"`
	PassWord string    `gorm:"type:varchar;comment:密码"`
}

type UserListDO struct {
	TotalCount int64
	Items      []*UserDO
}
